<?php
declare(strict_types = 1);

namespace leruge\command;

use think\console\Command;
use think\facade\Console;

class Model extends Command
{
    public function configure()
    {
        $this->setName('auth:model')
            ->setDescription('创建权限认证模型');
    }

    public function handle()
    {
        Console::call('model', ['AuthRule']);
        Console::call('model', ['AuthGroup']);
        Console::call('model', ['AuthGroupAccess']);
        $this->output->info('权限认证模型创建成功');
    }
}